/**
 @文件名： router/routerList.ts
 @来源：YongPing.Wang|2023/11/12 11:12
 @描述：路由列表
 **/

import LoginView from '@/viewBase/userModel/loginView.vue'
import RootView from '@/viewBase/mainModel/mainBase.vue'
import { rootBase } from '@/router/modules/rootBase.ts'
import { type RouteRecordRaw } from 'vue-router'

export const routerList: Readonly<RouteRecordRaw[]> = [
  /* 登录 */
  { path: '/', redirect: { name: 'login' } },
  { path: '/login', name: 'login', component: LoginView, meta: { title: 'loginPage' } },

  /* 首页 */
  {
    path: '/home',
    name: 'indexHome',
    component: async () => await import('@/viewBase/homeModel/index.vue'),
    meta: { title: 'homePage' },
  },

  /* 门户基础页面 */
  {
    path: '/root',
    name: 'root',
    meta: { title: 'platformPage' },
    component: RootView,
    children: rootBase,
  },

  /* 404 */
  { path: '/404', name: 'FourZeroFour', component: async () => await import('@/viewBase/otherModel/fourZeroFour.vue'), meta: { title: '404' } },
]
